package com.kmxd.ams.infra.use.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kmxd.ams.client.use.dto.UsePushAuthQueryDTO;
import com.kmxd.ams.client.use.dto.UsePushQueryDTO;
import com.kmxd.ams.client.use.vo.UsePushListVO;
import com.kmxd.ams.infra.use.entity.UsePush;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 推送表 Mapper 接口
 *
 * @author nickbi
 * @since 2023-01-11
 */
public interface UsePushMapper extends BaseMapper<UsePush> {
  List<UsePushListVO> selectPushPage(
      @Param("req") UsePushQueryDTO req, @Param("page") Long page, @Param("size") Long size);

  Long selectPushPageCount(@Param("req") UsePushQueryDTO req);

  /**
   * 档案权限查询
   *
   * @param req
   * @return
   */
  List<UsePushListVO> selectHaveAuthList(@Param("req") UsePushAuthQueryDTO req);
}
